package com.guchenbo.example;

import java.io.File;
import java.util.HashSet;
import java.util.Set;

/**
 * @author guchenbo
 * @date 2024/9/21
 */
public class Temp {
    public static void main(String[] args) {
        File bigF = new File("/Users/guchenbo/Downloads/待整理/2023.4.15 迪士尼游");
        File smallF = new File("/Users/guchenbo/Downloads/精修");

        String[] bigS = bigF.list();
        String[] smallS = smallF.list();

        Set<String> bigSet = new HashSet<>();
        Set<String> smallSet = new HashSet<>();
        for (String s : bigS) {
            bigSet.add(s);
        }
        for (String s : smallS) {
            smallSet.add(s);
        }
        Set<String> set = new HashSet<>();
        for (String s : smallSet) {
           if (!bigSet.contains(s)) {
               set.add(s);
           }
        }
        System.out.println(set);

        for (String s : bigSet) {
            if (!smallSet.contains(s)) {
                System.out.println(s);
            }
        }

        System.out.println(bigSet.size());
        System.out.println(smallSet.size());
    }
}
